import { lazy } from 'react'
import {SisternodeOutlined} from "@ant-design/icons";
import { IMenuRoutes } from '../element.tsx'
const Recently = lazy(() => import('@/views/Recently/index.tsx'))
const AddRecently = lazy(() => import('@/views/Recently/AddRecently.tsx'))
const RecentlyList = lazy(() => import('@/views/Recently/RecentlyList.tsx'))

const recently: IMenuRoutes = {
    path: 'recently',
    element: <Recently />,
    key: '/recently/list',
    icon: <SisternodeOutlined />,
    label: '思维导图',
    children: [{
        path: 'list',
        element: <RecentlyList />,
        key: '/recently/list',
        label: '思维导图',
        hide: 'false'
    }, {
        path: 'details',
        element: <AddRecently />,
        key: '/recently/details',
        label: '编辑思维导图',
        hide: 'false'
    }]
}

export default recently